<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>View Purchases</title>
        <link rel="stylesheet" type="text/css" href="CSS/RandallCSS.css" />
    </h:head>
    <h:body>
        
        <div align="center">     
        <h:form>          
                                                    
           <div class="Heading">
           <h:outputText value="#{fakeMainPortalMB.loginEmail}'s history purchases."/>
           </div>

           <br/>
           <br/>
           <br/>
        
        
         <p:dataTable value="#{cartBean.customerGetPurchases()}" var="o" paginator="true" rows="15"
                                 
                                 >
                    

                        <p:column>

                            <f:facet name="header">Purchase Date</f:facet>
                            #{o.time_stamp.time}

                        </p:column>
             
                        <p:column>

                            <f:facet name="header">Outlet</f:facet>
                            #{o.outlet_name}

                        </p:column>

                        <p:column>

                            <f:facet name="header">Item Name</f:facet>
                            #{o.item_name}

                        </p:column>

                        <p:column>

                            <f:facet name="header">Quantity</f:facet>
                            #{o.quantity}

                        </p:column>

                        <p:column>

                            <f:facet name="header">Subtotal</f:facet>
                            #{o.subtotal}

                        </p:column>  

         </p:dataTable>
       </h:form>
       </div>     
        
        
    </h:body>
</html>
